<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<!-- 引入head中公共部分 -->
<head th:replace="header::header-commo(首页)"></head>

<body>
<!-- 引入头部导航-->
<header th:replace="header::header-nav"></header>
<!--广告轮播图-->
<div class="container-fluid" style="padding: 0px;">
    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            <li data-target="#carousel-example-generic" data-slide-to="3"></li>
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
            <div class="item">
                <img src="img/banner1.jpg" alt="...">
            </div>
            <div class="item ">
                <img src="img/banner2.jpg" alt="...">
            </div>
            <div class="item">
                <img src="img/banner3.jpg" alt="...">
            </div>
            <div class="item active">
                <img src="img/banner4.jpg" alt="...">
            </div>
        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>
</div>
<!--主区域-->
<div class="container" style="margin-top: 10px;">

    <div class="page-header">
        <h3><strong>热门商品 </strong><small>Hot commodities</small></h3>
    </div>

    <div class="row text-center goods-list">
        <div th:each="hot:${hotItems}" class="col-md-4 col-xs-4">
            <a class="thumbnail" th:href="@{/item/{id}(id=${hot.id})}" href="#"> <img class="img-responsive " th:src="@{'/upload/' + ${hot.image}}"
                                                src="img/goods1.jpg"/>
                <p th:text="${hot.name}">天籁弦音 蔡文姬Q版手办</p>
                <p style="font-size: 18px;"><strong th:text="'¥' + ${hot.shopPrice}">¥150.00</strong></p>
            </a>
        </div>


    </div>
    <div class="row">
        <div class="col-md-12 col-xs-12">
            <div class="page-header">
                <h3><strong>优惠商品</strong><small> Preferential commodities</small></h3>
            </div>
        </div>
    </div>
    <div class="row text-center goods-list">
        <div th:each="pre:${preItems}" class="col-md-4 col-xs-4">
            <a class="thumbnail" th:href="@{/item/{id}(id=${pre.id})}" href="#"> <img class="img-responsive " th:src="@{'/upload/' + ${pre.image}}"
                                                src="img/goods7.jpg"/>
                <p th:text="${pre.name}">提莫 手办</p>
                <p style="font-size: 18px;"><strong th:text="'¥' + ${pre.shopPrice}">¥150.00</strong></p>
            </a>
        </div>
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods7.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods8.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods9.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods10.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods11.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
        <!--        <div class="col-md-4 col-xs-4">-->
        <!--            <a class="thumbnail" href="#"> <img class="img-responsive " src="img/goods12.jpg"/>-->
        <!--                <p>提莫 手办</p>-->
        <!--                <p style="font-size: 18px;"><strong>¥150.00</strong></p>-->
        <!--            </a>-->
        <!--        </div>-->
    </div>

</div>
<!--底部-->
<footer th:replace="footer::footer-commo"></footer>
</body>
</html>